<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>


<div data-role="content">

	<form name='f' id="loginform" action="<c:url value='j_spring_security_check' />"
		method='POST' data-ajax="false">
		 
			<label for="password">
				<spring:message code="user" />
				<spring:message code="colon" />
			</label>					
		 	<input type='text' name='j_username' value=''>
		 	
		 	<label for="password">
				<spring:message code="password" />
				<spring:message code="colon" />
			</label>
		 	<input type='password' name='j_password'  id="password" value="" autocomplete="off" />
		
		 	<label for="Status">
				<spring:message code="status" />
				<spring:message code="colon" />
			</label>
		 	<input type='text' name='status'  id="status" value="<spring:message code='status.default' />" autocomplete="off" />
		    
		<input type="submit"  data-ajax="false" value="<spring:message code='submit'/>" data-theme="b">			
	</form>		
	<a href="<%=request.getContextPath()%>/signup.do" data-theme="b" data-ajax="false" data-role="button"><spring:message code="sign_up" /></a>
</div> 
  
<c:if test="${not empty param.error}">	 
	<input type="hidden" id="error" value="<spring:message code='error.login'/><spring:message code='colon'/>${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}">
</c:if>
	
 